package com.holly.unit.deform.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.holly.unit.db.api.pojo.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 类描述: 表单设计URL授权表
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/4/11 15:16
 */
@Data
@TableName("design_form_url_auth")
@EqualsAndHashCode(callSuper = false)
public class DesignFormUrlAuth extends BaseEntity {

    public DesignFormUrlAuth() {
    }
    public DesignFormUrlAuth(String desformCode) {
        this.desformCode = desformCode;
    }

    public DesignFormUrlAuth(String desformId, String desformCode, String urlType) {
        this.desformId = desformId;
        this.desformCode = desformCode;
        this.urlType = urlType;
        // URL状态默认有效
        this.urlStatus = 1;
    }
    /**链接状态（1=有效，2=无效）*/
    @ExcelProperty(value = {"链接状态（1=有效，2=无效）"}, index = 4)
    @TableField("URL_STATUS")
    private Integer urlStatus;
    /**链接类型*/
    @ExcelProperty(value = {"链接类型"}, index = 5)
    @TableField("URL_TYPE")
    private String urlType;
    /**表单CODE*/
    @ExcelProperty(value = {"表单CODE"}, index = 6)
    @TableField("DESFORM_CODE")
    private String desformCode;
    /**表单ID*/
    @ExcelProperty(value = {"表单ID"}, index = 7)
    @TableField("DESFORM_ID")
    private String desformId;
    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

}
